//
// Created by lingzhitech on 25-9-22.
//

#ifndef DISC_QUOTE_H
#define DISC_QUOTE_H
#include "Quote.h"


class Disc_quote : public Quote {
public:
    Disc_quote() = default;
    Disc_quote(const std::string& book, double price,
    std::size_t qty, double disc):
    Quote(book, price),
    quantity(qty), discount(disc) { }
    double netPrice(std::size_t) const = 0;
protected:
    std::size_t quantity = 0; // purchase size for the discount to apply
    double discount = 0.0; // fractional discount to apply
};


#endif //DISC_QUOTE_H
